package com.base.logistics.jdl.bean.print;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * 用户使用的模板
 * </pre>
 * @since 2021-02-19
 */
public class UserTemplate  implements Serializable {

    /**
     * 物流公司编码
     */
    private String cpCode;

    /**
     * 该物流公司下用户使用的模板数据列表
     */
    private List<UserTemplateDTO> userStdTemplates;

    public UserTemplate() {
    }

    public String getCpCode() {
        return this.cpCode;
    }

    public List<UserTemplateDTO> getUserStdTemplates() {
        return this.userStdTemplates;
    }

    public void setCpCode(String cpCode) {
        this.cpCode = cpCode;
    }

    public void setUserStdTemplates(List<UserTemplateDTO> userStdTemplates) {
        this.userStdTemplates = userStdTemplates;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof UserTemplate)) return false;
        final UserTemplate other = (UserTemplate) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$cpCode = this.getCpCode();
        final Object other$cpCode = other.getCpCode();
        if (this$cpCode == null ? other$cpCode != null : !this$cpCode.equals(other$cpCode)) return false;
        final Object this$userStdTemplates = this.getUserStdTemplates();
        final Object other$userStdTemplates = other.getUserStdTemplates();
        if (this$userStdTemplates == null ? other$userStdTemplates != null : !this$userStdTemplates.equals(other$userStdTemplates))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserTemplate;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $cpCode = this.getCpCode();
        result = result * PRIME + ($cpCode == null ? 43 : $cpCode.hashCode());
        final Object $userStdTemplates = this.getUserStdTemplates();
        result = result * PRIME + ($userStdTemplates == null ? 43 : $userStdTemplates.hashCode());
        return result;
    }

    public String toString() {
        return "UserTemplate(cpCode=" + this.getCpCode() + ", userStdTemplates=" + this.getUserStdTemplates() + ")";
    }
}
